﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Event/EventBusOptions 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       EventBusOptions
* 创建时间：  2025/6/4 8:52:31
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Event.Config
{
    public class EventBusOptions
    { 
        public bool EnableDistributedEvents { get; set; } = true;
        public string? ConnectionString { get; set; }
        public bool UseRabbitMQ { get; set; } = true;
        public RabbitMqConfig RabbitMq { get; set; }
        public string KafakaServer { get; set; }
    }

    public class RabbitMqConfig
    {
        public string HostName { get; set; }
        public int Port { get; set; }
        public string UserName { get; set; }
        public string? Password { get; set; }
        public string? VirtualHost { get; set; }
    }
}
